import sys
import os
from datetime import datetime
# 添加项目根目录到 Python 路径
sys.path.append(os.path.abspath("../"))

from include import para    
from include import dataBase
from include import dealDate
from include import dealCode
from include import dealHistory
from include import dealMarket
from include import dealPool

if __name__ == '__main__':
    connect = dataBase.dataBaseConnect("../../../dataBaseConfig.json")
    dealCodeTest = dealCode.dealCode(connect)
    dealDateTest = dealDate.dealDate(connect)
    dealHistoryTest = dealHistory.dealHistory(connect)
    dealPoolTest = dealPool.dealPool(connect)
    dealMarketTest = dealMarket.dealMarket(connect,dealDateTest,dealCodeTest,dealHistoryTest,dealPoolTest)

    if 1:
        dealMarketTest.dealMarket()



    connect.commit()





